
#ifndef  __POP_WIN_H__
#define  __POP_WIN_H__

//********************************************************************
#include "sys_port.h"

#include "list.h"

#include "ui_base_page.h"
//********************************************************************
#ifdef __cplusplus
extern "C" {
#endif
//********************************************************************
//系统弹窗界面
//********************************************************************
#define  CFG_WIN_NAME_LEN   (24)

typedef struct  {
	slist_t 	 e_tail;
    page_base_t  e_attr;
}pop_win_link_t;

typedef struct  {
    int         len;
    int         max_len;
	slist_t *   e_head;
    slist_t *   e_regist;

    lv_timer_t * time;
}pop_win_manage_t;
//********************************************************************

int pop_win_init(void);
int pop_win_destroy(void);
int pop_win_add(char* name,page_vtable_t *opt,void* user_para);
int pop_win_del(char * name);
int pop_win_trav(void);
int pop_win_get_len(void);
pop_win_link_t * pop_win_get_by_index(int index);
pop_win_link_t * pop_win_get_by_name(const char * name);

int pop_win_register(char* name,page_vtable_t *opt,void* user_para);

int pop_win_load(const char* name,page_vtable_t *opt,void* user_para);
int pop_win_unload(void);
int pop_page_register(char * name,page_vtable_t *opt);
//********************************************************************
#ifdef __cplusplus
}
#endif
//********************************************************************

#endif
